import React, { Component } from 'react';
import axios from 'axios';
import api from '@api';
export default class Mock1 extends Component {
   componentDidMount(){
    axios.post(api.getInfo).
    then((data)=>{
        console.log(data);
    }).
    catch((error)=>{
        console.error(error);
    });
   }
    
    render() {
        return (
            <div>
                <p>我是mock1</p>
            </div>
        );
    }
}